package 笔试.快手;

import java.util.Arrays;

/**
 * @author:谢君臣
 * @Date:2021/9/11-18:35
 * @version:1.0
 * @function:
 */
public class Main02 {
    public static void main(String[] args) {

    }
    public boolean isContinues (int[] data) {
        // write code here
        Arrays.sort(data);
        int sum = 0;
        for (int i = 0; i < 5; i++) {
            if (data[i]==0) sum++;
        }
        for (int i = 1; i <5 ; i++) {
            if (data[i-1]!=0)
                sum -= (data[i]-data[i-1]-1);
        }
        return sum>=0;
    }
}
